import type { DictOptions } from "./dict";
export const sexOptions: DictOptions[] = [
  {
    name: "男",
    value: "0",
  },
  {
    name: "女",
    value: "1",
  },
  {
    name: "未知",
    value: "2",
  },
];

/**
 * 表示通用的是和否
 */
export const yesOrNoOptions: DictOptions[] = [
  {
    name: "是",
    value: "0",
  },
  {
    name: "否",
    value: "1",
  },
];

export function getSexName(value: string) {
  return sexOptions.find((p) => p.value === value)?.name;
}
